
/** 电子签名 **/
const complete = e => {
  formData.urgeSignature = e;
  form.value.validateField('urgeSignature', err => {});
}



/** 确认按钮 */
let submit = (e) => {
  formData.id = props.id;
  form.value.validate().then(res => {
    proxy.http.post(api.alarmUpdateUrgeInfo, formData).then(res => {
      if (res.code === 0) {
        uni.showToast({title: '督办成功', icon: 'success', duration: 2000});
        setTimeout(() => {
          goBack();
        }, 1000)
      } else {
        uni.showToast({title: res.msg, icon: 'none'})
      }
    })
  })
}

/** 返回上一页 **/
let goBack = (e) => {
  uni.$emit("refresh", {});
  uni.navigateBack();
}


</script>

<style scoped lang="scss">
  .list-box {
    margin: 20rpx 16rpx;
  }
  .list-all {
    background: #ffffff;
    padding: 0 20rpx;
    border-radius: 10rpx;
  }
  .areaWidth {
    margin: 24rpx 4rpx 0;
    width: 100%;
    ::v-deep .uv-textarea__field{
      text-align: left!important;
      padding: 10px!important;
    }
  }
  ::v-deep .uv-form-item__body {
    padding: 0 !important;
  }
</style>